home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Internet_24 / HTML Resource 1.0.sit / HTML Resource v.1.0.rsrc / TEXT_130.txt < prev    next >
Encoding:
Text File  |  1996-07-30  |  21.8 KB  |  513 lines

  1.  
  2. ツ 
  3.  
  4.  
  5. ツ 
  6.  
  7.  
  8.  
  9.  
  10. ツ ツ ツ 
  11.  
  12. ツ ツ ツ 
  13.  
  14.  
  15.  
  16. General
  17.  
  18.  
  19. ツ <HTML>...</HTML>
  20.  
  21. The purpose of the HTML tag is to tell the web browsing software that the document it's looking at is indeed an HTML page. Be sure to place <HTML> at the top of every HTML page you create. Similarly, place a </HTML> tag at the bottom of every document.
  22.  
  23.  
  24. ツ <HEAD>...</HEAD>
  25.  
  26. The head tag is used to tell the browser what part of the document is the top section, or the head.
  27.  
  28.  
  29. ツ <TITLE>...</TITLE>
  30.  
  31. The title contains the text that appears in the title bar of your browser window.
  32.  
  33.  
  34. ツ <BODY>...</BODY>  
  35.    
  36. The largest part of your HTML document is the body, which contains the content of your document (shown within the display area of your browser window).
  37.  
  38.         attributes:  (on all the following, the default colors will be used if omitted)
  39.             text - used to set the base color for the normal text within the document
  40.             link - used to set a specific color for text links
  41.             alink - used to set a specific color for an active link
  42.             vlink - used to set a specific color for a visited link
  43.             bgcolor - used to set a specific background color
  44.                         * all the color attributes are set equal to a hexadecimal number equivalent
  45.             background - used to specify a graphic file to tiled for the background.  If a bgcolor is also 
  46.                                 set, the page will appear in that color until the background graphic is loaded.
  47.  
  48.  
  49.  
  50. Formatting
  51.  
  52.  
  53. ツ <B>...</B>  Bold
  54.  
  55. Used to bold text.  Often this reproduces the same effect as the strong emphasis tag.
  56.  
  57.  
  58. ツ <I>...</I>  Italics
  59.  
  60. Used to italicize text.
  61.  
  62.  
  63. <U>...</U>  Underline
  64.  
  65. Used to underline text; not widely supported as underlining typically is associated with links.
  66.  
  67.  
  68. ツ <TT>...</TT>  Typewriter Text
  69.  
  70. Used for typewriter text, e.g. fixed-width font.
  71.  
  72.  
  73. ツ <BLINK>...</BLINK>  Blinking Text
  74.  
  75. A somewhat annoying option when overused, all the text that appears between these tags will blink incessantly.
  76.  
  77.  
  78. ツ <BASEFONT SIZE=x>  Base Font Size
  79.  
  80. Allows you to set the font size of your entire document to be a specified size in relation to what the user has set in their browser.  The 'x' would be a number between 1 and 7.
  81.  
  82.  
  83. ツ <FONT>...</FONT>  Font Modification
  84.  
  85. The font tag makes it possible to make temporary changes in text attributes within the body of your document.  A big advantage to this tag is that changes can be made mid-sentence, not forcing a new line break like the heading tag.
  86.  
  87.         attributes:
  88.             size - used to change the size of the text.  The size can be set as an absolute value or 
  89.                                 proportional, i.e. '+' or '-' a certain number.  These numbers are between 1 and 7.
  90.             color - a newer attribute that (in some browsers) allows you to change the test color.  This 
  91.                                 is a hexadecimal number or there are also a few names that can be used, i.e. red, 
  92.                                 blue, green, etc.  This option will be ignored by non-capable browsers.
  93.  
  94.  
  95. ツ <Hx>...</Hx>  Heading
  96.  
  97. HTML has six levels of headings.  The symbol 窶˜x窶™ equals, numbers 1 through 6, with 1 being the most prominent. Headings are displayed in larger and/or bolder fonts than normal body text. The first heading in each document should ideally be tagged <H1>.
  98.  
  99.         attributes:
  100.             align - used to align the heading text either left, right or center.
  101.  
  102.  
  103. ツ <CITE>...</CITE>  Citation
  104.  
  105. Used for titles of books, films, etc. Typically displayed in italics.
  106.  
  107.  
  108. ツ <CODE>...</CODE>  Code
  109.  
  110.     Used for computer code. Displayed in a fixed-width font.
  111.  
  112.  
  113. ツ <DFN>...</DFN>  Definition
  114.  
  115. Used for emphasizing a definition.  No recognizeable change in most browsers.
  116.  
  117.  
  118. ツ <EM>...</EM>  Empasis
  119.  
  120. Used for emphasis. Typically displayed in italics. 
  121.  
  122.  
  123. ツ <KBD>...</KBD>  Keyboard Entry
  124.  
  125. Used for user keyboard entry. Typically displayed in plain fixed-width font.
  126.  
  127.  
  128. ツ <XMP>...</XMP>  Preformatted - No tags
  129.  
  130. Preformatted without tags.  Handy for showing HTML tags on screen if you are explaining how tags work.
  131.  
  132.  
  133. ツ <PRE>...</PRE>  Preformatted
  134.  
  135. The <PRE> tag (which stands for "preformatted") generates text in a fixed-width font. This tag also makes spaces, new lines, and tabs significant (multiple spaces are displayed as multiple spaces, and lines break in the same locations as in the source HTML file). This is useful for program listings, among other things.
  136.  
  137.  
  138. ツ <STRONG>...</STRONG>  Strong Emphasis
  139.  
  140. Used for strong emphasis. Typically displayed in bold.
  141.  
  142.  
  143. ツ <SAMP>...</SAMP>
  144.  
  145. Used for a sequence of literal characters. Displayed in a fixed-width font.
  146.  
  147.  
  148. ツ <VAR>...</VAR>  Variable
  149.  
  150. Used for a variable, where you will replace the variable with specific information. Typically displayed in italics.
  151.  
  152.  
  153. ツ <ADDRESS>...</ADDRESS>  Address
  154.  
  155. The <ADDRESS> tag is generally used to specify the author of a document, a way to contact the author (e.g., an email address), and a revision date. It is usually the last item in a file.
  156.  
  157.  
  158.  
  159. Alignment
  160.  
  161.  
  162. <Hx ALIGN=y></Hx>  See previous entry
  163.  
  164. <P ALIGN=y></P>  See entry below
  165.  
  166.  
  167. ツ <BLOCKQUOTE>...</BLOCKQUOTE>  Block Quotation
  168.  
  169. Use the <BLOCKQUOTE> tag to include lengthy quotations in a separate block on the screen. Most browsers generally  indent from both margins for the quotation to separate it from surrounding text.
  170.  
  171.  
  172. ツ <CENTER>...</CENTER>  Center
  173.  
  174. Allows you to center text and even objects on your screen.
  175.  
  176.  
  177.  
  178. Links & Images
  179.  
  180.  
  181. ツ <A>...</A>  Anchor
  182.  
  183. The anchor tag gives interactivity to an HTML document.  This allows you to create links to other internet pages, doucments and downloadable files.  Anything that appears between the begin and end anchor tags will take you to the specified destination when clicked.
  184.  
  185.         attributes:
  186.             href - the basic attribute to an anchor tag which tells the destination of the link.  This can 
  187.                                     specifiy a link within the current document or outside document or file.  Outside 
  188.                                     links can be absolute (include the full URL including http, mailto etc.) or relative 
  189.                                     (within the same folder or directory on the WWW server).
  190.             mailto - used within a href reference to create a hyperlink for emailing.
  191.             name - used for specifying the location and name of an internal link.
  192.             target - if using frames, this specifies what frame or window to load the link into.  See the 
  193.                                     entry under frames below.
  194.  
  195.  
  196. ツ <IMG>  Image
  197.  
  198. To include an image in a web document, you need to use an image tag.  Make certain the file name ends with 窶œ.gif窶 or .jpg窶 for GIF or JPEG images. By default, the bottom of an image is aligned with the text.  There are numerous attributes for the image tag.
  199.  
  200.         attributes:
  201.             src - the basic and necessary element of an image tag which specifies the location of the 
  202.                                 image file to be displayed.
  203.             width - specifies the width of the image.  Optional, but recommended for faster layout of 
  204.                                 your page.  This can be used to stretch or shrink the display of the image.
  205.             height - spedifies the height of the image.  Same description as width.
  206.             border - specifies a border with (in pixels) when an image is used as a hyperlink.  Set the 
  207.                                 border width to zero if you want no border to appear.  (It is good ettiquite to also 
  208.                                 include a text version of the link as well.)
  209.             alt - gives an optional text to appear if the person is not loading images or using a 
  210.                                 non-graphical browser.
  211.             lowsrc - an optional image to load first and faster to give a feel for the page before the 
  212.                                 larger image loads.  If using this feature, be sure the lowsrc is much smaller!
  213.             usemap - if using a client-side image map, this specifies what coding to refer to.
  214.  
  215.  
  216. ツ <MAP>...</MAP>  Client-Side Image Map
  217.  
  218. A new and very cool feature that allows the use of a graphic as an image map without the use of a CGI program.  There are several modifications that need to be made for this tag to work.  First you must find the coordinates around the sections to be clickable.  Then set up the code to work according to those clickable points.  You must also include the USEMAP attribute in the image tag.
  219.  
  220.         attributes:
  221.             name - essential attribute giving the code a name to be referenced by for the image tag.
  222.             usemap - included with the image tag to specify what coding to refer to.
  223.  
  224.  
  225. ツ <AREA>  Client-Side Image Map (cont'd)
  226.  
  227. Part of the <MAP> tag; much like the <LI> is to a list.  It is with this tag that you specify the different areas that are clickable and where they go.
  228.  
  229.         attributes:
  230.             shape - determines the shape of the clickable area being defined; can be rectangle (rect), 
  231.                                 polygon (poly), circles (circle),  and default (default).  Default defines an action 
  232.                                 those parts of the image that do not have a shape given.
  233.             coords - sets the coordinates of the area.  For a rectangle and they are given as "left, top, 
  234.                                 right, bottom" and a circle is a defined as a center point and then a radius (a total of 
  235.                                 three numbers).
  236.             href - same as when in an anchor tag, specifies the action when the area is clicked.
  237.             nohref - specifies an area to be non-clickable, or have no action assiciated with it.
  238.  
  239.  
  240. Dividers
  241.  
  242.  
  243. ツ <BR>  Line Break
  244.  
  245. The <BR> tag forces a line break with no extra (white) space between lines.
  246.  
  247.         attribute:
  248.             clear - used to discontinue wrapping next to an inline graphic and continue one line below 
  249.                                 the graphic.  Can be set equal to left, right and center.
  250.  
  251.  
  252. ツ <P>...</P>  Paragraph
  253.  
  254. Creates a line break and starts a new paragraph. Without <P> tags, the document becomes one large paragraph.  The </P> closing tag can be omitted. This is because browsers understand that when they encounter a <P> tag, it implies that there is an end to the previous paragraph.
  255.  
  256.         attributes:
  257.             align  - for aligning text; can be set equal to left, center or right
  258.  
  259.  
  260. ツ <HR>  Horizontal Rule
  261.  
  262. The <HR> tag produces a horizontal line the width of the browser window. It's often used as a way to break up information in your document.  The WIDTH and SIZE attributes may be used with <HR> individually or together. 
  263.  
  264.         attributes:
  265.             noshade    - forces the line to be solid rather than shadowed or 3-D
  266.             width=x - Designates the width of the rule with 'x' equaling the rule窶冱 percentage (or 
  267.                                         absolute pixel width) to the size of the browser window.
  268.             size=x - Designates the thickness of the rule with 'x' equaling the number of pixels.
  269.  
  270.  
  271. ツ <NOBR>...</NOBR>  No (Line) Break
  272.  
  273. No break allows you to force text to stay on the same line, much like the PRE tag, but does not start on a new line at the beginning of the tag or force the text to a fixed font.  Good for poetry that just must look a certain way.
  274.  
  275.  
  276. ツ <WBR>  Word Break
  277.  
  278. Used inside of the NOBR tag to specify breaking points, or when to start a new line.
  279.  
  280.  
  281.  
  282. Lists
  283.  
  284.  
  285. ツ <OL>  Ordered List
  286.  
  287. A numbered list (also called an ordered list, from which the tag name derives) is identical to an unnumbered list, except it uses <OL> instead of <UL>. The items are tagged using the same <LI> tag.  These lists can be nested to form an outline format, automatically assigning different numbering formats for the nested lists.
  288.  
  289.         attribute:
  290.             type - allows for specification of numbering type; can be set to disc, square or circle    
  291.  
  292.  
  293. ツ <UL>...</UL>  Unnumbered (unorganized) List
  294.  
  295. Makes an unnumbered, bulleted list.  Each item in the list appears between the UL tags, and is preceeded by an <LI> tag.  These lists can be nested to form an outline format, automatically assigning different symbols for the nested lists.
  296.  
  297.         attribute:
  298.             type - allows for specification of bullet type; can be set to disc, square or circle    
  299.  
  300.  
  301. ツ <DL>...</DL>  Definition List
  302.  
  303. A definition list usually consists of alternating a definition term (coded as <DT>) and a definition definition (coded as <DD>). Web browsers generally format the definition on a new line and typically indented.
  304.  
  305.  
  306. ツ <DIR>...</DIR>  Directory List
  307.  
  308. Not used very much anymore, but acts the same as an unnumbered list.  Can be used to help you keep you coding organized.
  309.  
  310.  
  311. ツ <MENU>...</MENU>  Menu List
  312.  
  313. Not used very much anymore, but acts the same as an unnumbered list.  Can be used to help you keep you coding organized.
  314.  
  315.  
  316. ツ <LI>  List Item
  317.  
  318. The <LI> (list item) tag is followed by the individual item.  Each item in a numbered or unnumbered list is preceeded by an <LI> tag.  The closing </LI> tag is optional, but not needed.  
  319.  
  320.  
  321. ツ <DT>  Definition Term
  322.  
  323. Used within a definition list (<DL>) to specify the term or stem of the list item.  Starts on a new line of text.
  324.  
  325.  
  326. ツ <DD>  Definition Data
  327.  
  328. Used within a definition list (<DL>) to specify the definition or body of the list item.  Usually appears on the following line of text and indented from the left margin.
  329.  
  330.  
  331.  
  332. Tables
  333.  
  334. ツ <TABLE> ... </TABLE>  Table
  335.  
  336. Defines a table in HTML.   Tables are very useful for controlling the layout of a page so that it appears exactly as intended.
  337.  
  338.         attributes:
  339.             border - to specify a visible border width for a table.   A border of 1 pixel width is the 
  340.                                 default if you do not specify the width.  Use BORDER=0 if you do not want to show a 
  341.                                 border. 
  342.             cellspacing - specify a pixel width for spacing between cells, visible if a border > 1.
  343.             cellpadding - specify a pixel width/value for spacing from the cell border and the contents 
  344.                                 of the cell.
  345.             width - give pixel dimensions or percentage for for the width of the entire table.
  346.             
  347.  
  348. ツ <CAPTION> ...</CAPTION>  Table Caption
  349.  
  350. Defines the caption for the title of the table. The default position of the title is centered at the top of the table.  NOTE: Any kind of markup tag can be used in the caption. 
  351.  
  352.         attribute:
  353.             align - specify whether the caption appears at the top or bottom of the table
  354.  
  355.  
  356. ツ <TR> ... </TR>  Table Row
  357.  
  358. Specifies a table row within a table.   A table cells and headings will be contained within a table row.
  359.  
  360.         attributes:
  361.             align - specify default alignment for the entire row of cells, including left, right, center.
  362.             valign - default vertical alignment for the entire row, including top, bottom, middle.
  363.  
  364.  
  365. ツ <TH> ... </TH>  Table Heading
  366.  
  367. Defines a table header cell. By default the text in this cell is bold and centered. Table header cells may contain other attributes to determine the characteristics of the cell and/or its contents. See Table Attributes below for more information.
  368.  
  369.         attributes:
  370.             align - specify default alignment for the contents of the cell, including left, right, center.
  371.             valign - vertical alignment for the contents of the cell, including top, bottom, middle.
  372.             width/height - dimensions for the cell; may be in pixel value or percentage of the table.
  373.             colspan - specify how many columns for the current cell to span or cross.
  374.             rowspan - specify how many rows for the current cell to span or cross.
  375.  
  376.  
  377. ツ <TD> ... </TD>  Table Data (cell)
  378.  
  379. Defines a table data cell. By default the text in this cell is aligned left and centered vertically. Table data cells may contain other attributes to determine the characteristics of the cell and/or its contents. See Table Attributes below for more information.
  380.  
  381.         attributes:
  382.             align - specify default alignment for the contents of the cell, including left, right, center.
  383.             valign - vertical alignment for the contents of the cell, including top, bottom, middle.
  384.             width/height - dimensions for the cell; may be in pixel value or percentage of the table.
  385.             colspan - specify how many columns for the current cell to span or cross.
  386.             rowspan - specify how many rows for the current cell to span or cross.
  387.  
  388.  
  389.  
  390. Forms
  391.  
  392.  
  393. ツ <FORM>...</FORM>   Form
  394.  
  395. The basic element of the form is the <FORM> tag.  This begins and closes the area enclosing the form elements.  Any HTML coding can be contained within the form area to enhance the look of your form.  There are attributes within the form tag that are required to tell your browser where to send the information and how to do it.
  396.  
  397.         attributes:
  398.             action - tells your browser what URL to send the information to; this is typically a CGI 
  399.                                 program of some kind.
  400.             method - there are two options, 'get' or 'post'.  The difference is actually somewhat 
  401.                                 complicated, but in simple language get encodes all the information into the URL that 
  402.                                 is sent and post sends the data separately from the actual call to the script.  Which do 
  403.                                 you use?  Typically you will be using a set program someone else has created, and 
  404.                                 they will tell you which one to use.  Whew!
  405.  
  406.  
  407. ツ <INPUT>  Input (Variables)
  408.  
  409. Input is the most common element within the form area.  This allows you to specify text input fields, radio buttons, check boxes, selection lists and perhaps more as it is developed.
  410.  
  411.         attributes:
  412.             name - specifies the field or variable name; must be included.
  413.             value - specifies the default value for the variable when sent to the CGI program.  This can     
  414.                                 also be specified as "hidden" to send information that you do not want the user seeing.
  415.                                 This text appears within the field and can be deleted and/or replaced by the user.
  416.             type - this is where you specify what type input you are looking for, either text, radio, 
  417.                                 checkboxes, or selection menus.  Be sure to see the coding examples for how to use 
  418.                                 these options.
  419.             size - when using a text input field, this tells how long it is (width in character's).
  420.             maxlength - when using a text input field, specifies how many characters the user is 
  421.                                 limited to for their input.
  422.             selected - when using a radio field, determines which button is selected by default (be sure 
  423.                                 to only select one!)
  424.             checked - when using a checkbox field, specifies which box(es) are selected.
  425.  
  426.  
  427. ツ <TEXTAREA>...</TEXTAREA>   Form Text Area
  428.  
  429. When you are asking a user to input a large amount of text, use the text area element instead of a small one line text input box.  You can assign the dimensions of the text area to help determine how much the user types.  Text entered between the opening and closing tags will appear within the text area and can be deleted and/or replaced by the user.
  430.  
  431.         attributes:
  432.             name - specifies the field or variable name; must be included.
  433.             value - specifies the default value for the variable when sent to the CGI program.
  434.             rows - determines how long the text area will be (length in text lines).
  435.             cols - determines how wide the text area will be (width in character's).
  436.             wrap - specifies how you would like the text to wrap within the text area, usually 'virtual' 
  437.                                 if you do anything, but optional.
  438.  
  439.  
  440. Miscellaneous
  441.  
  442.  
  443. ツ Frames
  444.  
  445. You may wonder why frames was not put in a section of its own, like tables or lists.  Although popular, frames are memory & bandwidth intensive, and usually not utilized very well.  They are new enough that you should take care when using them and always offer a noframe alternitive.
  446.  
  447.  
  448. <FRAMESET>...</FRAMESET>   Frame Container
  449.  
  450. This is the main container for a frame.  When creating a frame "defining" page, you leave out the BODY tag and use this tag for each frame.  These can be nested to create frames within frames, much like a table.  Frameset would be comparable to rows or columns in a table.
  451.  
  452.         attributes:
  453.             rows - a value that assign how much of the screen each row is allotted, given in fixed 
  454.                                 pixels, percentage number or '*' meaning take up the remaining space.
  455.             cols - follows same format as rows, only assigns the screen sections horizontally.
  456.  
  457.  
  458. <FRAME>  Individual Frame
  459.  
  460. This tag defines a single frame in a frameset.  It is not a container so it has no matching end tag.
  461.  
  462.         attributes:
  463.             src - defines the source URL tp be displayed in the frame.  If omitted a blank space is 
  464.                                 displayed in the size of the frame.
  465.             name - defines a name for the window.  Although this is not displayed, it is useful for 
  466.                                 targeting particular windows with links.
  467.             marginwidth - gives control of the margin width within a frame, defined in pixels.
  468.             marginheight - gives control of the margin height within a frame, defined in pixels.
  469.             scrolling - determines whether the frame containes a scroll bar, defined as "yes, no or 
  470.                                 auto".  Be sure to include if your page may not fit within the frame display area.
  471.             noresize - specifies that the user cannot change the size of the frame.  There is no value 
  472.                                 associated with the tag, it's inclusion only.  This is optional and all frames are 
  473.                                 resizable by default.
  474.  
  475.  
  476. <NOFRAMES>...</NOFRAMES>  No Frame Option
  477.  
  478. Option included on the primary frame document that provides information or alternate page layout for non-frames capable browsers.  This is necessity if you are interested in reaching large portions of the web that choose not to use frames capable browsers.
  479.  
  480.  
  481. TARGET - Targeting Links Within Frames
  482.  
  483. This is an option for pointing your links into specific frames.  These targets can be contained within the anchor tag, area tag of a client-side image map or within the base tag for an overall default destination.  TIP:  Before using links, be sure you understand how targeting links and how to make a link fill the whole window when it leaves your site.
  484.  
  485.         values:  (set target equal to these within the anchor tag)
  486.             "window name" - set the target equal to the name of the window to load into.
  487.             "_blank" - will cause the link to always be loaded in a new blank window.
  488.             "_self" - causes the link to always load in the same window the anchor was clicked in.
  489.             "_parent" - amkes the link load in the immediate FRAMESET parent of this document.  This 
  490.                                 defaults to acting like "_self" if the document has no parent.
  491.             "_top" - makes the link load in the full body of the window.  This is how you get out of your 
  492.                                 frames when leaving your site!
  493.  
  494.  
  495. Other
  496.  
  497.  
  498. ツ <!--  -->   Comments
  499.  
  500. Allows you to place comments within the code of your HTML document that does not appear when loaded up into a browser.  This is handy for placing markers or reminders to yourself in a highly changing document.
  501.  
  502.  
  503. ツ <META>   Meta Indexing
  504.  
  505. Embedding information for the server.  Used for several options, especially for passing indexing information to search engines (both internal and the larger popular ones) and for automatic reloading or reloading to a different URL of your page.
  506.  
  507.         attributes:
  508.             http-equiv - set this equal to a URL and time to be reloaded
  509.             name - name of the document/HTML file or descriptor for a search engine (such as 
  510.                                 description, keywords or author).
  511.             content - a short description of the content of the page
  512.  
  513.